package org.tnc.hr.model;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "work_days", catalog = "tnc")
public class WorkDays implements java.io.Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 2916205219970075327L;
    private Integer id;
    private Date workDay;
    private String workDes;
    private Integer isWeekend;

    /** default constructor */
    public WorkDays() {
    }

    /** minimal constructor */
    public WorkDays(Date workDay) {
        this.workDay = workDay;
    }

    /** full constructor */
    public WorkDays(Date workDay, String workDes) {
        this.workDay = workDay;
        this.workDes = workDes;
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "work_day", nullable = false, length = 19)
    public Date getWorkDay() {
        return this.workDay;
    }

    public void setWorkDay(Date workDay) {
        this.workDay = workDay;
    }

    @Column(name = "work_des", length = 100)
    public String getWorkDes() {
        return this.workDes;
    }

    public void setWorkDes(String workDes) {
        this.workDes = workDes;
    }
    
    @Column(name = "is_weekend", length = 10)
    public Integer getIsWeekend() {
        return isWeekend;
    }
    
    public void setIsWeekend(Integer isWeekend) {
        this.isWeekend = isWeekend;
    }
}